package com.project.bean;

import java.util.List;

/**
 * 频道实体类
 */
public class ChannelBean {
    private Integer id;
    private String name;
    /** 频道介绍 */
    private String introduce;
    /** 主贴数量 */
    private int postNum;
    private List<PostBean> postList;

    public ChannelBean() {
    }

    public ChannelBean(Integer id, String name, String introduce, int postNum, List<PostBean> postList) {
        this.id = id;
        this.name = name;
        this.introduce = introduce;
        this.postNum = postNum;
        this.postList = postList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public int getPostNum() {
        return postNum;
    }

    public void setPostNum(int postNum) {
        this.postNum = postNum;
    }

    public List<PostBean> getPostList() {
        return postList;
    }

    public void setPostList(List<PostBean> postList) {
        this.postList = postList;
    }

    @Override
    public String toString() {
        return "ChannelBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", introduce='" + introduce + '\'' +
                ", postNum=" + postNum +
                ", postList=" + postList +
                "}\n";
    }
}
